﻿using System;

using DBUtility.PetaPoco;

namespace Model
{
    /// <summary>
    /// 设备
    /// </summary>
    [Serializable]
    [TableName("device")]
    [PrimaryKey("Id")]
    public partial class Device
    {
        #region Model
        private int _id;
		private int? _mid;
		private string _devicetoken;
		private bool _status;
		private int _type;
		private int _count;

        /// <summary>
		/// 主键
		/// </summary>
		public int Id
		{
		    set { _id = value; }
		    get { return _id; }
		}
		/// <summary>
		/// 推送消息id
		/// </summary>
		public int? Mid
		{
		    set { _mid = value; }
		    get { return _mid; }
		}
		/// <summary>
		/// 设备token
		/// </summary>
		public string Devicetoken
		{
		    set { _devicetoken = (value == null || value.Length <= 200 ? value : value.Substring(0, 200)); }
		    get { return _devicetoken; }
		}
		/// <summary>
		/// 状态(0=未推送,1=已推送)
		/// </summary>
		public bool Status
		{
		    set { _status = value; }
		    get { return _status; }
		}
		/// <summary>
		/// 类型(1=IOS,2=Android)
		/// </summary>
		public int Type
		{
		    set { _type = value; }
		    get { return _type; }
		}
		/// <summary>
		/// 發送次數
		/// </summary>
		public int Count
		{
		    set { _count = value; }
		    get { return _count; }
		}
        #endregion
    }
}